#include <bits/stdc++.h>


using namespace std;

mt19937 rng((int)chrono::steady_clock::now().time_since_epoch().count());

signed main() {
    ofstream 
        f2out("C:\\Users\\lenovo\\Desktop\\1.in", ios::out);
    int n = 522;
    f2out << 522 << '\n';
    for (int i = 1; i <= n * 2; ++ i)
        for (int j = 1; j <= n; ++ j) {
            if (rng() % 2) f2out << "-2147483648";
            else f2out << "2147483647";
            if (j == n) f2out << '\n';
            else f2out << " ";
        }
    return 0;
}